﻿-if(ViewData.ContainsKey("Filter"))
  -var Filter = ViewData["Filter"] as IFilter
  #filter.popup
    %form
      %h1 Фильтр 
      %a.mshidelink{href="#", onclick="$('#filterholder').hide(); return false;"}
        %img{src="img/close.gif"}
      .filtercontent.formbody
        -foreach(var fc in Filter.Conditions)
          =fc.Render()
      #flterr
      .filterbottom
        %button{type="button",onclick="applyFilter()"} Применить фильтр
        %button{type="button",onclick="$('#filterholder').hide();"} Закрыть
